package Poker;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
import java.util.Vector;

public class Bot extends Player {

	public Bot(String name)
	{
		super(name);
	}
	
	public Vector<Integer> Query()
	{
		Random rnd = new Random();
		Vector<Integer> return_list = new Vector<Integer>();
		int index = rnd.nextInt(4)+1;
		int ile = rnd.nextInt(5-index)+1;
		for (int i = 0; i < ile; ++i)
		{
			return_list.add(index+i);
		}
		return return_list;
	}
	
	public boolean Entry(int entry)
	{
		return true;
	}
	
	public int Bet(int bet)
	{
		Random rnd = new Random();
		int diff = chips - bet;
		int ret_bid;
		if(diff < 0)
			return -1;
		else if(diff == 0)
			return bet;
		else
		{
			if(rnd.nextInt(2)==0)
				return bet;
			
			ret_bid = rnd.nextInt(diff);
			if(ret_bid == 0)
				return -1;
			else
				return ret_bid + bet;
		}

	}

}
